Fix tests on nightly (by avoiding UB, even)
authorFelix Krull <f_krull@gmx.de>
Fri, 28 Jun 2019 20:43:39 +0000 (22:43 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs

index 4d2fe7319bbed87fb15eb39d95d66415843dfc05..e1294a541ea1dfb107bbda67338a0a50e3421e71 100644 (file)
@@ -65,7 +65,7 @@ impl FromGlibPtrNone<gpointer> for &RepoCheckoutFilter {
 ///
 /// # Panics
 /// If any parameter is a null pointer, the function panics.
-unsafe extern "C" fn filter_trampoline(
+unsafe fn filter_trampoline(
     repo: *mut OstreeRepo,
     path: *const c_char,
     stat: *mut libc::stat,